/**
 * Created by huangzx on 2015/7/28.
 */
define(['angular', 'framework/groupgrid/GillionGroupGridModule'], function (angular) {
    return angular.module('TestGroupGridModule', ['GillionGroupGridModule'])
        .controller('TestGroupGridController', ['$scope', '$http', function ($scope, $http) {
            $scope.fmtSex = function(value, rowData, rowIndex){
                console.log(value);
                console.log(rowData);
                console.log(rowIndex);
                return value;
            };

            $scope.rowSelected = function(record){
                console.log(record);
            }

            $scope.source = [{
                class: '三年一班',
                name: '张三',
                sex: '男',
                age: 22
            },{
                class: '三年一班',
                name: '李四',
                sex: '女',
                age: 22
            },{
                class: '四年一班',
                name: '王五',
                sex: '男',
                age: 25
            },{
                class: '四年一班',
                name: '赵六',
                sex: '女',
                age: 25
            },{
                class: '四年一班',
                name: '周七',
                sex: '男',
                age: 25
            },{
                class: '三年一班',
                name: '王八',
                sex: '男',
                age: 25
            },{
                class: '四年一班',
                name: '叶九',
                sex: '男',
                age: 25
            },{
                class: '四年一班',
                name: '刘十',
                sex: '男',
                age: 25
            }];
        }]);
});